package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.dto.EnterpriseEmployeeRecordJudgeAnswerDto
import cn.exrick.xboot.base.entity.EnterpriseEmployeeRecord
import cn.exrick.xboot.base.service.IEnterpriseEmployeeRecordService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class EnterpriseEmployeeRecordController : IEnterpriseUserController.IEnterpriseEmployeeRecord  {


    @Autowired
    private lateinit var iEnterpriseEmployeeRecordService: IEnterpriseEmployeeRecordService

    override fun createOrUpdateEnterpriseEmployeeRecord(enterpriseEmployeeRecord: EnterpriseEmployeeRecord): Result<Any?>? {

        return iEnterpriseEmployeeRecordService.createOrUpdateEnterpriseEmployeeRecord(enterpriseEmployeeRecord)
    }

    override fun judgeAnswerRightOrFalse(enterpriseEmployeeRecordJudgeAnswerDto: EnterpriseEmployeeRecordJudgeAnswerDto): Result<Boolean>? {

        return iEnterpriseEmployeeRecordService.judgeAnswerRightOrFalse(enterpriseEmployeeRecordJudgeAnswerDto)
    }

    override fun getEmployeeExamRecord(pageVo: PageVo, jobTrainPartId: String?): Result<MutableMap<String, Any?>>? {

        return iEnterpriseEmployeeRecordService.getEmployeeExamRecord(pageVo, jobTrainPartId)
    }
}